package cn.zucc.edu.madq.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.zucc.edu.madq.dao.ManagerClubMapper;
import cn.zucc.edu.madq.pojo.ManagerClub;
import cn.zucc.edu.madq.service.ManagerClubService;

@Service("managerClubService")
public class ManagerClubServiceImpl implements ManagerClubService {

	@Autowired
	private ManagerClubMapper managerClubMapper;

	@Override
	public int insert(ManagerClub mc) {
		return managerClubMapper.insert(mc);
	}

	@Override
	public List<ManagerClub> select(ManagerClub mc) {
		return managerClubMapper.selectByMC(mc);
	}

	@Override
	public ManagerClub selectById(int mcId) {
		return managerClubMapper.selectByPrimaryKey(mcId);
	}

	@Override
	public int delMCById(int mcId) {
		return managerClubMapper.deleteByPrimaryKey(mcId);
	}

}
